<template>
	<view class="complete_box">
		<view class="cup_box">
			<view class="star_box">
				<view class="star">
					<image src="@/static/images/icon/star.svg"></image>
				</view>
				<view class="star">
					<image src="@/static/images/icon/star.svg"></image>
				</view>
				<view class="star">
					<image src="@/static/images/icon/star.svg"></image>
				</view>
				<view class="star">
					<image src="@/static/images/icon/star.svg"></image>
				</view>
			</view>
			<view class="cup">
				<image src="@/static/images/icon/cup.png" mode="aspectFit"></image>
			</view>
			
		</view>
		<view class="title_box">
			<view class="title1">恭喜完成！</view>
			<view class="title2">+15积分</view>
		</view>
		
		<view class="btn" @tap="returnPage">返回</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		onLoad() {
			
		},
		methods: {
			returnPage() {
				uni.reLaunch({
					url:"/pages/practice/practice"
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
.complete_box {
	background-color: #f5f5f5;
	
	.cup_box {
		background-color: $uni-bg-color-opacity;
		height: 60vh;
		border-radius: 0 0 47% 47%;
		position: relative;
		
		.star_box {
			width: 100%;
			height: 140rpx;
			position: absolute;
			top: 27%;
			left: 50%;
			transform: translateX(-50%);
			
			.star {
				position: absolute;
				
				&:nth-child(1) {
					left: 20%;
					bottom: 0;
				}
				
				&:nth-child(2) {
					left: 36%;
					top: 10%;
				}
				
				&:nth-child(3) {
					right: 36%;
					top: 10%;
				}
				
				&:nth-child(4) {
					right: 20%;
					bottom: 0;
				}
			}
			
			image {
				width: 64rpx;
				height: 64rpx;
			}
		}
		
		.cup {
			width: 450rpx;
			height: 450rpx;
			position: absolute;
			left: 50%;
			bottom: 120rpx;
			transform: translateX(-50%);
			
			image {
				width: 450rpx;
				height: 450rpx;
			}
		}
		
	}
	
	.title_box {
		text-align: center;
		margin: 88rpx 0;
		
		.title1 {
			font-weight: bold;
			font-size: 52rpx;
		}
		
		.title2 {
			margin-top: 30rpx;
			font-size: 36rpx;
			color: $uni-text-color-success;
		}
	}
	
	.btn {
		width: 50%;
		height: 72rpx;
		margin: 80rpx auto 0;
		line-height: 72rpx;
		text-align: center;
		border-radius: 50rpx;
		background-color: $uni-bg-color-user;
		color: $uni-text-color-inverse;
	}
}
</style>
